﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNhaSach;
using Entities;

namespace DataAccessLayer
{
    public class ChiTietBaoCaoCongNoDAL
    {
        DataService ds = new QLNhaSach.DataService();
        public int InsertChiTietBaoCaoCongNo(ChiTietBaoCaoCongNo ctbccn)
        {
            int kq = 0;
            try
            {
                String sql = "INSERT INTO CHITIETBAOCAOCONGNO(CTBCCN_MABAOCAOCONGNO, CTBCCN_MAKHACHHANG,CTBCCN_NODAU,CTBCCN_PHATSINH,CTBCCN_NOCUOI) VALUES(" + ctbccn.MaBaoCaoCongNo + "," + ctbccn.MaKhachHang + "," + ctbccn.NoDau + "," + ctbccn.PhatSinh + "," + ctbccn.NoCuoi + ")";
                kq = ds.ExcuteInsert(sql);
            }
            catch (Exception)
            {
                throw;
            }
            return kq;
        }
    }
}
